//
//  TextFieldBackground.m
//  EasyChat
//
//  Created by romana on 16/6/17.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TextFieldBackground.h"

@implementation TextFieldBackground

- (void)drawRect:(CGRect)rect {

    CGContextRef context=UIGraphicsGetCurrentContext();
    CGContextSetLineWidth(context,0.2);
    CGContextBeginPath(context);
    CGContextMoveToPoint(context, 5, 50);
    CGContextAddLineToPoint(context,self.frame.size.width-5, 50);
    CGContextClosePath(context);
    [[UIColor blackColor] setStroke];
    CGContextStrokePath(context);
    
    // Drawing code
}

@end
